﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EnCor.Security.Credentials
{
    public class UsernamePasswordCredential : Credential, IUsernamePasswordCredential
    {

        private string _Username;

        private string _Password;

        private string _Tag;


        public UsernamePasswordCredential(string username, string password)
        {
            _Username = username;
            _Password = password;
        }

        public UsernamePasswordCredential(string username, string password, string tag)
            :base(tag)
        {
            _Username = username;
            _Password = password;
            _Tag = tag;
        }

        #region IUsernamePasswordCredential Members

        public string Username
        {
            get { return _Username; }
        }

        public string Password
        {
            get { return _Password; }
        }

        #endregion

        public override string Type
        {
            get { return CredentialTypes.UsernameCredential; }
        }

        public override string Name
        {
            get { return _Username; }
        }
    }
}
